home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / lbbs07 / bbs.h < prev    next >
C/C++ Source or Header  |  1993-07-25  |  3KB  |  92 lines

  1. /* LazyBBS header - bbs.h */
  2.  
  3. #define LAZYVERS    "0.7"            /* version number */
  4. #define LAZYNAME    "LazyBBS"        /* program name */
  5.  
  6. /* setup */
  7. #define D_MAXDOWN    300                /* max download KB per day */
  8. /*efine CHAT_HOTKEY    '\0xf'      */    /* ctrl-O to chat at every prompt */
  9. #define    S_TIMEOUT    300                /* 300 s = 5mn inactivity timeout */
  10. #define D_TIMEOUT    45                /* 45 mn login / session max */
  11.  
  12. /* system dependancies UNIX */
  13. #ifdef UNIX
  14. /* #include <alib.h> ansi fake libs */
  15. #define SYSSTRSEPAR "/"
  16. #define SYSSEPAR '/' 
  17. #define MACHINE "Unix"
  18. /*efine DO_ECHO_MYSELF echo ourselves what the guy typed */
  19. /* define clock_t and CLK_TCK if not already done (needed on News-OS) */
  20. #ifndef clock_t
  21. #define clock_t long
  22. #endif
  23. #ifndef CLK_TCK
  24. #define CLK_TCK 1000
  25. #endif
  26. #define min(a,b) ((a)>(b)?(b):(a))
  27. #define max(a,b) ((a)<(b)?(b):(a))
  28. #endif
  29.  
  30. /* system dependancies ATARI ST */
  31. #ifdef ATARI
  32. #define SYSSTRSEPAR    "\\"
  33. #define SYSSEPAR '\\'
  34. #define MACHINE "Atari ST"
  35. #define DO_ECHO_MYSELF
  36. #endif
  37.  
  38. /* constants and default values */
  39. #define CLS_STRING    "\033E\033[2J\r" /* VT52 then VT100 screen clear */
  40. #define ERASE_LINE  "\033[2K\r"        /* VT100 erase line */
  41. #define MAXTRIES    3                /* max tries (passwd,bad answers,etc) */
  42. #define MAXKEYS        50                /* max # of choices in menu */
  43. #define MORELINE    21
  44.  
  45. /* config files */
  46. #define LOGINFILE    "users.cfg"        /* text file containing users */
  47. #define CONFIGFILE    "bbs.cfg"
  48. #define QUESTFILE    "question.txt"    /* new user questions */
  49. #define ANSWERFILE  "answers.txt"    /* answsers */
  50. #define CFGFILE        "bbs.cfg"
  51. #define DEFLOGFILE    "bbs.log"        /* default log file */
  52. #define AREASFILE    ""
  53.  
  54. /* menus and std pages */
  55. #define TOPMENU        "top.mnu"
  56. #define HOTNEWS        "hotnews.txt"
  57. #define INTRO        "intro.txt"
  58. #define WELCOME        "welcome.txt"
  59. #define BYE            "bye.txt"
  60. #define FILESBBS    "files.bbs"
  61.  
  62. /* internal limits */
  63. #define BBSOK         0
  64. #define BBSFAIL     1
  65. #define BBSSTR         150    /* generic string */
  66. #define BBSSEPAR     '!'    /* separator in user's file */
  67. #define ECHOCHAR    0    /* get_string echo char? */
  68. #define MAXECHO        400    /* max number of areas */
  69. #define FBBSCUTLEN  45    /* download() */
  70. #define FBBSSTART    31
  71.  
  72. /* typedefs */
  73. typedef struct
  74. {
  75.     char first_name[BBSSTR];        /* first name */
  76.     char last_name[BBSSTR];            /* last name */
  77.     char password[BBSSTR];            /* password */
  78.     char address[BBSSTR];            /* address */
  79.     char flags[BBSSTR];                /* flags */
  80.     int last_login;                    /* last login day */
  81.     int downkb;                        /* download kb today */
  82.     int calls;                        /* number of calls */
  83. } BBSLOGIN;
  84.  
  85. typedef struct {
  86.     char file[BBSSTR];    /* Name of HDR/MSG */
  87.     char name[BBSSTR];    /* Fido Name */
  88.     char desc[BBSSTR];    /* Description */
  89.     char group[BBSSTR];    /* Group */
  90. } ECHOLIST;
  91.  
  92. /* end of bbs.h */